#ifndef CNMAIN_H
#define CNMAIN_H

#include <QMainWindow>
#include <QtGui/QWidget>
#include "cncell.h"
#include "cnfigurine.h"
#include "cnrandom.h"

class cnMain : public QMainWindow
{
    Q_OBJECT
public:
    explicit cnMain(QWidget *parent = 0);
    ~cnMain();
    void generate(int w, int h, int size, int pattern = 0);
    QVector<cnCell*> test;
    QVector<cnFigurine*> fig;
    QWidget *centralWidget;
    int cp;
    int cr;
    int cf;
    QPushButton roll;
signals:

public slots:
    void move_fig();
    void set_fig(cnFigurine *src);

};

#endif // CNMAIN_H
